<?php 
/**
 * SocialEnginePro
 *
 * @category   Application_Extensions
 * @package    tv
 * @author     Azim
 */

/**
 * @category   Application_Extensions
 * @package    tv
 */
?>
<?php if( count($this->paginator) > 0 ): ?>
<ul class='sepro_plugin_browse'>
  <?php foreach( $this->paginator as $item ): ?>
    <li>
      <div class="sepro_plugin_photo">
        <?php if(!$item->uri):?>  
            <?php echo $this->htmlLink($item->getHref(), $this->itemPhoto($item, 'thumb.normal')) ?>
       <?php else:?>
          <a href="<?php echo $item->getHref()?>"><img src="<?php echo $item->uri?>"/></a>
       <?php endif;?>    
      </div>
      <div class="sepro_plugin_options">
          
      </div>
      <div class="sepro_plugin_info">
        <div class="sepro_plugin_title">
          <h3><?php echo $this->htmlLink($item->getHref(), $item->getTitle()) ?></h3>
        </div>
        <div class="sepro_plugin_members">
            <?php if($item->starttime != '0000-00-00 00:00:00'):?>
                <?php echo $this->locale()->toDateTime($item->starttime);?>
            <?php endif;?>
        </div>    
        <div class="sepro_plugin_desc">
            <?php echo $this->string()->truncate($item->description, 100);?>
        </div>    
      </div>
    </li>
  <?php endforeach; ?>
</ul>

<?php else: ?>
  <div class="tip">
    <span>
    <?php echo $this->translate('There are no TV yet.') ?>
    </span>
  </div>
<?php endif; ?>

<?php echo $this->paginationControl($this->paginator, null, null, array(
  'query' => $this->formValues
)); ?>
